package ModelLayer;


import java.util.ArrayList;

public class DvdContainer
{
    // instance variables - replace the example below with your own
    private ArrayList<DVD> dvds;
    private static DvdContainer instance;

    /**
     * Constructor for objects of class DvdContainer
     */
    public DvdContainer()
    {
        // initialise instance variables
       dvds = new ArrayList<>();
    }

    public static DvdContainer getInstance() {
        if (instance == null) {
            instance = new DvdContainer();
        }
        return instance;
    }
    
    public void addDVD(DVD dvd) {
      dvds.add(dvd);    
    }
    
}
